package de.reondo.jos;

public class PackageDependencyEdge {

	private Package targetPackage;
	private Package sourcePackage;
	private PackageDependencyType type;

	public PackageDependencyType getType() {
		return type;
	}

	public PackageDependencyEdge() {
		type = PackageDependencyType.UNKNOWN;
		sourcePackage = targetPackage = Object.class.getPackage();
	}

	public PackageDependencyEdge(PackageDependencyType type, Package sourcePackage, Package targetPackage) {
		this.type = type;
		this.sourcePackage = sourcePackage;
		this.targetPackage = targetPackage;
	}

	public Package getSourcePackage() {
		return sourcePackage;
	}

	public Package getTargetPackage() {
		return targetPackage;
	}

}
